package com.duobaoyu.dby.supply.db.entity.refund;

import com.baomidou.mybatisplus.annotation.*;
import com.duobaoyu.dby.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 售后运单信息表
 *
 * @author LY
 * @email 249007302@qq.com
 * @date 2023-09-26 10:42:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("scb_after_sale_logistics")
@ApiModel(value = "售后运单信息表")
@EqualsAndHashCode(callSuper = true)
public class AfterSalesLogistic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 售后申请编号
     */
    @ApiModelProperty(value = "售后申请编号")
    private String afterSaleSn;
    /**
     * 供应链订单号
     */
    @ApiModelProperty(value = "供应链订单号")
    private String orderSn;
    /**
     * 发货日期
     */
    @ApiModelProperty(value = "发货日期")
    private LocalDateTime deliverDate;
    /**
     * 货运单号
     */
    @ApiModelProperty(value = "货运单号")
    private String expressCode;
    /**
     * skuCode
     */
    @ApiModelProperty(value = "skuCode")
    private String skuCode;
    /**
     * 渠道SKU编码
     */
    @ApiModelProperty(value = "渠道SKU编码")
    private String channelSkuCode;
    /**
     * SKU名称
     */
    @ApiModelProperty(value = "SKU名称")
    private String skuName;
    /**
     * 申请商品SKU数量
     */
    @ApiModelProperty(value = "申请商品SKU数量")
    private Integer skuNum;
    /**
     * 商品类型 :real->实物商品；call->话费快充商品；coupon->卡券；recharge->直充商品；call_slow->话费慢充商品；electricity_fees_slow->电费慢充商品
     */
    @ApiModelProperty(value = "商品类型 :real->实物商品；call->话费快充商品；coupon->卡券；recharge->直充商品；call_slow->话费慢充商品；electricity_fees_slow->电费慢充商品")
    private String productType;
    /**
     * 发货公司编码
     */
    @ApiModelProperty(value = "发货公司编码")
    private String expressCompanyCode;
    /**
     * 发货公司
     */
    @ApiModelProperty(value = "发货公司")
    private String expressCompany;
    /**
     * 运费
     */
    @ApiModelProperty(value = "运费")
    private BigDecimal freightAmount;
    /**
     * 状态 1-初始值 2-渠道提交成功 3-渠道提交失败
     */
    @ApiModelProperty(value = "状态 1-初始值 2-渠道提交成功 3-渠道提交失败")
    private Integer status;
    /**
     * 版本号-用作乐观锁
     */
    @Version
    @ApiModelProperty(value = "版本号-用作乐观锁")
    private Integer version;
    /**
     * 是否删除 0-否 1-是
     */
    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty(value = "是否删除 0-否 1-是")
    private Integer delFlag;


}
